<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>用户注册</title>
<meta name="decorator" content="default" />
<script src="${ctxStatic}/js/register.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	if("${error}"!=''){
		alertx("${error}");
		$("#sjhm").val("${sjhm}");
		$("#password").val("${password}");
		$("#repassword").val("${password}");
		$("#dxyzm").val("${dxyzm}");
		$("#yqrhm").val("${yqrhm}");
	}
	$('.m-checkboxHid').click(function(){
		if($("#btnSubmit").attr("disabled")=='disabled'){
			$("#btnSubmit").removeAttr("disabled");
		}
		else{
			$("#btnSubmit").attr('disabled',"true");
		}
		$("#btnSubmit").toggleClass("zc_btn_dis");
	});

})
</script>
</head>
<body>
	<div class="full_container">
		<h2>注册账户</h2>
		<div class="clearfix">
			<form id="regForm" name="regForm" method="post" action="${ctx}/doregister">
				<div class="zc_leftbox">
					<div class="m-row clearfix">
						<label class="m_rowLabel">手机号码：</label>
						<input class="m_holderInput" id="sjhm" name="sjhm" type="text" />
					</div>
					<div class="m-row clearfix">
						<label class="m_rowLabel">密码：</label> 
						<input class="m_holderInput" id="password" name="password" type="password"/>
					</div>
					<div class="m-row clearfix">
						<label class="m_rowLabel">确认密码：</label> 
						<input class="m_holderInput" id="repassword" name="repassword" type="password"/>
					</div>
					<div class="m-row clearfix">
						<label class="m_rowLabel">验证码：</label> 
						<input class="y_holderInput" id="dxyzm" name="dxyzm" type="text"/>
						<button class="h_btn" id="btngetyzm">点击获取</button>
					</div>
					<div class="m-row clearfix">
						<label class="m_rowLabel">邀请人手机号码：</label> 
						<input class="m_holderInput" id="yqrhm" name="yqrhm" type="text"/>
					</div>
					<div class="clearfix">
						<label class="m_rowLabel"></label> 
						<a class="m-checkbox" href="#">
						<input class="m-checkboxHid" type="checkbox" value="1"></input></a> 
						<label class="rowLabel">同意<a href="#">《利盈利服务协议》</a></label>
					</div>
					<div class="m-row clearfix">
						<label class="m_rowLabel"></label>
						<button class="zc_btn zc_btn_dis" id="btnSubmit" disabled>立即注册</button>
					</div>
				</div>
				<div class="zc_rightbox">
					<h3>已有利盈利账户</h3>
					<a class="btn_dl" href="${ctx}/login">立即登录</a> 
					<a class="zc_banner" href="#"></a>
				</div>
			</form>
		</div>
	</div>
</body>
</html>